@echo off

if %JDK_HOME%.==. goto SETHOME

del /q /s docs\*.* >nul

REM For jdk1.4 and higher add -breakiterator command line switch
%JDK_HOME%\bin\javadoc -breakiterator -d docs -bootclasspath .\ -sourcepath .\ java.lang java.io java.util javax.events javax.memory lpc2xxx.hw lpc2xxx.comm lpc2xxx.edu
echo Done.
goto EXIT

:SETHOME
echo Missing JDK_HOME environment variable. For example: SET JDK_HOME=C:\JDK1.3

:EXIT
pause